<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BaseController
 *
 * @author Administrator
 */

abstract class BaseController extends Zend_Controller_Action 
{
    
    /**
     * get resource by name
     * @param String $name
     * @return type 
     */
    public function getResourceByName($name)
    {
        $bootstrap = $this->getInvokeArg('bootstrap');
        $resource = $bootstrap->getResource($name);
        return $resource;
        
    }
}
